package org.ccay.core.io;

import org.ccay.core.exception.ApplicationException;
import org.ccay.core.exception.IHttpCodeProvided;
import org.ccay.core.util.HttpUtil;

/**
 * 资源异常	
 * @author chaowangbang
 * @since 2012-4-9
 */
public class ResourceException extends ApplicationException implements IHttpCodeProvided {
 
	private static final long serialVersionUID = -8348793198013590848L;

	/**
	 * 创建资源异常
	 * @param innerException
	 */
	public ResourceException(Throwable innerException){
		super("ccay.core.00090001", innerException);		
	}

	/* (non-Javadoc)
	 * @see org.ccay.core.exception.IHttpCodeProvided#getHttpCode()
	 */
	public int getHttpCode() {
		return HttpUtil.NOT_FOUND;
	}
}
